<?php 
/**
 * @version        $Id$
 * @author         master@xuewl.com
 * @copyright      Copyright (c) 2007 - 2014, Chongqing xuewl Information Technology Co., Ltd.
 * @link           http://www.xuewl.com
**/
namespace Announce\Controller;
use \Common\Controller\BaseController;
class IndexController extends BaseController
{
	public function _initialize() {
		parent::_initialize();
		$this->db = D('Announce');
	}
	public function lists(){
		$SEO= seo(0,'公告列表');
		include template('announce_list');
	}
	/**
	 * 公告详情页
	 */
	public function show(){		
    	$SEO=seo(0,"网站公告");
    	$data = I('get.');
    	$result = $this->db->where(array('aid'=>$data['id']))->find();
    	if(!$result){
    		$this->error('你查看的记录不存在');
    	}
    	extract($result);
    	include template('show');
	}
}
?>